<?php
declare (strict_types = 1);

namespace app\command;

use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;

class Hello extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('hello')
            ->setDescription('the hello command');
    }

    protected function execute(Input $input, Output $output)
    {
        // 指令输出
        // \think\facade\Log::record('测试日志信息');
        // file_put_contents('php://stdout', 'Hello world');
        file_put_contents("php://stderr", "file_put_contents:stderr");
        $fh = fopen('php://stderr', 'w'); 
fwrite($fh, "标准错误php://stderr/n"); 
fclose($fh); 
        $output->writeln('56563464');
    }
}
